home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 5 / Gold Medal Software - Volume 5 (Gold Medal) (1995).iso / utils1 / fdupl101.arj / FDUPSAMP.BAT < prev    next >
DOS Batch File  |  1994-09-15  |  1KB  |  36 lines

  1. ECHO OFF
  2. IF "%1"=="" goto help
  3. IF NOT EXIST %1 goto help
  4. SET original=%1
  5. IF EXIST otemp DEL otemp
  6. REN %original otemp
  7. PLN otemp temp1
  8. RPSORT temp1 temp2 /+8:80
  9. DEL temp1
  10. FDUPLINS temp2 temp3 /d8
  11. DEL temp2
  12. RPSORT temp3 temp4
  13. DEL temp3
  14. PLN temp4 temp5 /r
  15. DEL temp4
  16. REN temp5 %original
  17. CLS
  18. ECHO All non-unique lines have now been eliminated from: %original
  19. ECHO The original has been renamed to "otemp" in the current directory.
  20. QUIT
  21. :help
  22. CLS
  23. ECHO To eliminate all non-unique lines from an unsorted file, run this
  24. ECHO batch file with the name of the file on the command line.
  25. ECHO.
  26. ECHO You must have these programs in your path: RPSORT, FDUPLINS and PLN.
  27. ECHO RPSort is a widely available, fast, and powerful freeware sorting program.
  28. ECHO RPSRT102.zip should be on all the BBS sites listed in REIGNWAR.TXT.
  29. ECHO.
  30. ECHO PLN is a utility to sequentially number lines in a text file, to prepare
  31. ECHO it for printing or sorting.  FDUPLINS eliminates non-unique lines from a
  32. ECHO sorted text file.
  33. ECHO.
  34. ECHO FDUPLINS and PLN are freeware by David Daniel Anderson, and should be
  35. ECHO available on most of the BBS sites listed in REIGNWAR.TXT.
  36.